const router = require("koa-router")()
const UserModel = require("../../models/user")
router.get("/api/user",async ctx=>{
    var {username} = ctx.query
    var data = await UserModel.find({username})
    ctx.body={
        code:200,
        res:data,
        msg:'获取用户的数据'
    }
})
module.exports = router